home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeed.gsfc.nasa.gov!news!ramin
- From: ramin@twinkie.gsfc.nasa.gov (Ramin Sina)
- Newsgroups: comp.std.c
- Subject: CLOCKS_PER_SEC not defined
- Followup-To: comp.std.c
- Date: Wed, 14 Feb 96 23:41:02 GMT
- Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
- Message-ID: <ramin.1174728902A@news.gsfc.nasa.gov>
- NNTP-Posting-Host: ramin.gsfc.nasa.gov
- X-Newsreader: VersaTerm Link v1.1
-
- Hello everyone,
-
- I am using a supposedly ansi c program in which I write
-
- #include <time.h>
-
- #if defined(__STDC__) && !defined(CLOCKS_PER_SEC)
- #error "CLOCKS_PER_SEC is not defined on this stupid compiler"
- #endif
-
- I get the error that CLOCKS_PER_SEC is not defined. I had thought that it
- was defined in standard C in the time.h header. I need CLOCKS_PER_SEC to
- time how long it takes for the program to run. Can anybody suggest how I can
- fix this problem.
-
- Thanks,
- Ramin Sina
-